#!/bin/bash
PGADMIN_REV=1.14.2
http://ftp.postgresql.org/pub/pgadmin3/release/v$(PGADMIN_REV)/src/pgadmin3-$(PGADMIN_REV).tar.gz

sudo apt-get remove -y pgadmin3
sudo apt-get install -y wx2.8-headers libwxgtk2.8-0 libwxgtk2.8-dev libxml2-dev libxslt-dev

./configure --prefix=/opt/pgadmin  --with-pgl=/opt/pgsql
make;
sudo make install
